public class sixEightfive {
    public static void main(String[] args) {
        int m = 3;
        int n = 7;
        int sum = 0;
        while (n != 0){
            sum += n;
            n--;
        }
        System.out.println(sum);
    }
}
